package com.arron.DesignMode.builder;

/**
 * @Classname HightHouseBuilder
 * @Date 2020/11/6 17:12
 * @Created by 刘
 */
public class HightHouseBuilder implements HouseBuilder{

    private House house;

    public HightHouseBuilder(House house) {
        this.house = house;
    }

    @Override
    public void buildBasic() {
        System.out.println("建造10m的地基");
        house.setBasic("10m地基");
    }

    @Override
    public void buildWalls() {
        System.out.println("建造100m的墙");
        house.setWalls("100m的墙");
    }

    @Override
    public void buildRoof() {
        System.out.println("建造透明的屋顶");
        house.setRoof("透明的屋顶");
    }

    @Override
    public House getHouse() {
        return house;
    }
}
